package com.huaxin.hxmodulesystem.dto.response;

import lombok.Data;

/**
 * @Description: 验证码返回结果
 */
@Data
public class CaptchaResult {
    private String key;
    private String imageBase64; // 

    public CaptchaResult(String key, String imageBase64) {
        this.key = key;
        this.imageBase64 = "data:image/jpg;base64," + imageBase64;
    }

    // getter and setter
    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getImageBase64() {
        return imageBase64;
    }

    public void setImageBase64(String imageBase64) {
        this.imageBase64 = imageBase64;
    }

}
